package com.bytecub.protocol.service;

import com.bytecub.common.domain.dto.response.ProtocolItemResDto;
import com.bytecub.protocol.base.IBaseProtocol;
import com.bytecub.protocol.domain.bo.DeviceProductBo;
import java.util.List;

/**
 * ByteCub.cn. Copyright (c) 2020-2020 All Rights Reserved.
 *
 * @author bytecub@163.com songbin
 * @version Id: ProtocolUtilService.java, v 0.1 2020-12-29 Exp $$
 */
public interface IProtocolUtilService {
    /**
     * 列出所有协议
     *
     * @return
     */
    List<ProtocolItemResDto> listProtocol();

    /**
     * 根据协议编码查询协议实例
     *
     * @param protocolCode
     * @return
     */
    IBaseProtocol queryProtocolInstanceByCode(String protocolCode);

    /**
     * 根据deviceCode查询协议实例
     *
     * @param deviceCode
     * @return
     */
    DeviceProductBo queryInstanceByDeviceCode(String deviceCode);
}
